from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.conf import settings

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    url(r'^$', 'face.views.main_face', name='home'),
    url(r'^news$', 'face.views.main_face', name='news'),
    url(r'^message$', 'face.views.message', name='message'),
    url(r'^logout$', 'face.views.main_face_logout', name='logout'),
    url(r'^register$', 'register.views.register_account', name='register'),
    url(r'^confirm$', 'register.views.confirm_account', name='confirm'),
    url(r'^cabinet$', 'cabinet.views.cabinet', name='cabinet'),
    url(r'^table$', 'table.views.table', name='table'),
    url(r'^comment$', 'table.views.comment', name='comment'),
    url(r'^work$', 'work.views.work', name='work'),
    url(r'^catalogue$', 'catalogue.views.catalogue', name='catalogue'),
    url(r'^about$', 'face.views.about', name='about'),
    url(r'^bookcase$', 'bookcase.views.bookcase', name='bookcase'),
    url(r'^board$', 'board.views.board', name='board'),
    # url(r'^lr/', include('lr.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    url(r'^admin/', include(admin.site.urls)),
)
